package com.test.beanconfig;

import com.test.springquickstart.pojo.People;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringQuickStartApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringQuickStartApplication.class, args);
//        People peopleBean = (People) context.getBean("peopleBean");
//        System.out.println("get people : " + peopleBean);
        People bob = (People) context.getBean("PeopleBob");
        System.out.println(bob);
    }
}
